﻿using MiniFox.Components;
using MiniFox.Infrastructure;
using Platform.Core.Models;
using Platform.Core.Services;

namespace Platform.Core
{
    /// <summary>
    /// 
    /// </summary>
    [AutoRegister, SpareComponent(typeof(PortletService))]
    public interface IPortletService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <returns></returns>
        object[] GetMyWidgets();
        /// <summary>
        /// 
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        ResultObject<ViewTable> Query(PagedQueryObject<WidgetQuery> request);
        /// <summary>
        /// 
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        object[] Save(string[] data);
    }
}